<?php 
/* SVN FILE: $Id$ */
/* QuartosItem Test cases generated on: 2009-10-22 16:28:04 : 1256228884*/
App::import('Model', 'QuartosItem');

class QuartosItemTestCase extends CakeTestCase {
	var $QuartosItem = null;
	var $fixtures = array('app.quartos_item', 'app.quarto', 'app.item');

	function startTest() {
		$this->QuartosItem =& ClassRegistry::init('QuartosItem');
	}

	function testQuartosItemInstance() {
		$this->assertTrue(is_a($this->QuartosItem, 'QuartosItem'));
	}

	function testQuartosItemFind() {
		$this->QuartosItem->recursive = -1;
		$results = $this->QuartosItem->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('QuartosItem' => array(
			'id'  => 1,
			'quarto_id'  => 1,
			'item_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>